import { AppRouter } from '@/routers';
import { ConfigProvider, App as AppProvider, theme } from 'antd';
const App = () => {
  return (
    <ConfigProvider
      theme={{
        token: {
          colorPrimary: '#15a1a1', // 主色调,
        },
        components: {
          Button: {
            // 按钮特有配置
            colorPrimary: '#15a1a1',
            colorPrimaryHover: '#15a1a1',
            colorPrimaryActive: '#15a1a1',
          },
        },
        cssVar: true,
        algorithm: theme.defaultAlgorithm,
      }}
    >
      <AppProvider
        message={{ maxCount: 1 }}
        notification={{ placement: 'topRight' }}
      >
        {/* <RouterProvider router={router} /> */}
        <AppRouter />
      </AppProvider>
    </ConfigProvider>
  );
};

export default App;
